#!/usr/bin/sh
# Environment variable file for Single Server deployment (CS + VS1)

################### SETTINGS FOR CDS DEPLOYMENT #######################

CDS_RELEASE=/workspace/whg/release/Sun_Java_System_Content_Delivery_Server_5.1_ga.zip
CDS_HOME_PARENT=/workspace/whg/deployment
BINARY="Sun_Java_System_Content_Delivery_Server*"
CDSA_TOOLS=/workspace/whg/workspace/trunk/toolpack.zip
PERFTEST_JAR=/workspace/whg/workspace/trunk/modules/internal/perftest/dist/perftest.jar

PATCH_DEPLOY=false
CDS_PATCH=/net/ceres.sfbay/export12/jscds/sentinel_preview/promoted/b04/*.zip


ANT_HOME=/workspace/whg/workspace/dependencies/tools/apache-ant-1.7.0

################## MISC SETTING ####################

DEPLOYMENT_NAME=cds

############## PLATFORM SETTINGS ####################

APP_SERVER=sn
CDS_HOST=cln204
PORT=7070
SSL_PORT=8081
ADMIN_PORT=4848
UPPER_HEAP=1024
LOWER_HEAP=1024
DEBUG_MODE=WARNING

BEA_HOME=/opt
WL_HOME=${BEA_HOME}
JAVA_HOME=/usr/jdk/jdk1.5.0_11
SUN_AS_HOME=/workspace/whg/Installations/SUNWappserver9_0_01
AS_ACCEPTOR_THREADS=24
JNDI_HOST=$CDS_HOST
JNDI_PORT=$PORT
JMS=server
JMS_HOST=$CDS_PORT
# For a multi-vending deployment if JMS=client then the following variable is not useful.
JMS_PORT=7676

#################COMPONENT SETTINGS #####################

# set the following all components to true for a SS deployment
# set the following two components to false for a VS deployment

CS_ENABLE=true
DP_ENABLE=true

# set the following components to false for a CS deployment #######

VS_ENABLE=true
SP_ENABLE=true
FS_ENABLE=true

VS_ACCOUNT=cds.vending.server.1

ES_ENABLE=true
MS_ENABLE=true
NS_ENABLE=true
PPS_ENABLE=true
MOS_ENABLE=true
CSS_ENABLE=true
VSS_ENABLE=true

CS_HOST=$CDS_HOST
DP_HOST=$CDS_HOST
FS_HOST=$CDS_HOST
VS_HOST=$CDS_HOST
SP_HOST=$CDS_HOST
ES_HOST=$CDS_HOST
MS_HOST=$CDS_HOST
NS_HOST=$CDS_HOST
PPS_HOST=$CDS_HOST
MOS_HOST=$CDS_HOST
CSS_HOST=$CDS_HOST
VSS_HOST=$CDS_HOST

CS_PORT=$PORT
DP_PORT=$PORT
FS_PORT=$PORT
VS_PORT=$PORT
SP_PORT=$PORT
ES_PORT=$PORT
MS_PORT=$PORT
NS_PORT=$PORT
PPS_PORT=$PORT
MOS_PORT=$PORT
CSS_PORT=$PORT
VSS_PORT=$PORT

CS_DB_POOL=4
DP_DB_POOL=4
SP_DB_POOL=100
VS_DB_POOL=100
FS_DB_POOL=100
ES_DB_POOL=100
PPS_DB_POOL=100
RS_DB_POOL=100
CDS_HOME_EXISTS=no

##################### DATABASE SETTINGS #############

MYSQL_HOST=CDSDBServer
MYSQL_PORT=3306
MYSQL_HOME=/opt/mysql/mysql/
MYSQL_SID=pscdsdb
MYSQL_SYS_USER=root
MYSQL_SYS_PASSWD=q1w2e3
MYSQL_VERSION=5.1.31
MYSQL_SERVER_ID=DBServer1
PREFIX=whg72setup
DB_PASSWD=cdsperf

DEFAULT_TS=USERS
TEMP_TS=TEMP
CATALOG_TS=USERS
CATALOG_IX_TS=USERS
CONTENT_TS=USERS
CONTENT_IX_TS=USERS
EVENT_TS=USERS
EVENT_IX_TS=USERS
VENDING_TS=USERS
VENDING_IX_TS=USERS
SUBSCRIBER_TS=USERS
SUBSCRIBER_IX_TS=USERS

VENDING_ACCOUNTS="cds.vending.server.1@$CDS_HOST:$PORT"

###################### DATACFG SETTINGS ####################

ONESTEP=95
TWOSTEP=1
SUB_BASE=1000000
SUB_PREFIX=sub
SUB_COUNT=2000000
WIDTH=6
DEPTH=3
CONTENT_SAMPLES=1
CAT_SIZE=1
PUBLISH=WIDTH**DEPTH
MULTIPLIER=32
CDS_REG="$CDS_HOME/cfg/registry"
######################### TBD TBD TBD TBD ########################

#CDS_HOME=${CDS_HOME_PARENT}/*
#PATH=/export/home/MYSQL/bin:/shared/dp/k2/all/sparc/bin:/bin:/usr/bin:/usr/sbin:/usr/ucb:/opt/local/bin:/usr/ccs/bin:/usr/openwin/bin:/etc:/usr/dist/exe:/export/cds/bin:/net/jalapi/tools/build/share/ant-1.4.1/bin

PATH=$MYSQL_HOME/bin:/bin:/usr/bin:/usr/sbin:/usr/ucb:/usr/ccs/bin:/usr/openwin/bin:/etc:/usr/dist/exe:$ANT_HOME/bin:

#REXEC_LOC=/net/mumble/master_ws/cp-qa-tools/solaris_bin/rexec
#R_USER=root
#R_PASS=!ncffpi!
#RCMD="${REXEC_LOC} ${CDS_HOST} -l ${R_USER} -p ${R_PASS}"

#######################  EXPORT the variables #####################

export CDS_RELEASE
export CDS_HOME_PARENT
export BINARY
export CDSA_TOOLS
export PERFTEST_JAR

export PATH
export PATCH_DEPLOY
export CDS_PATCH
export CDS_HOME_EXISTS

export DEPLOYMENT_NAME

export APP_SERVER
export CDS_HOST
export PORT
export SSL_PORT
export ADMIN_PORT
export UPPER_HEAP
export LOWER_HEAP
export DEBUG_MODE

export BEA_HOME
export WL_HOME
export JAVA_HOME
export SUN_AS_HOME
export JNDI_HOST
export JNDI_PORT
export JMS
export JMS_HOST
#export JMS_PORT

export CS_ENABLE
export DP_ENABLE
export VS_ENABLE
export SP_ENABLE
export FS_ENABLE

export VS_ACCOUNT

export ES_ENABLE
export MS_ENABLE
export NS_ENABLE
export PPS_ENABLE
export MOS_ENABLE
export CSS_ENABLE
export VSS_ENABLE

export CS_HOST
export DP_HOST
export FS_HOST
export VS_HOST
export SP_HOST
export ES_HOST
export MS_HOST
export NS_HOST
export PPS_HOST
export MOS_HOST
export CSS_HOST
export VSS_HOST

export CS_PORT
export DP_PORT
export FS_PORT
export VS_PORT
export SP_PORT
export ES_PORT
export MS_PORT
export NS_PORT
export PPS_PORT
export MOS_PORT
export CSS_PORT
export VSS_PORT

export CS_DB_POOL
export DP_DB_POOL
export SP_DB_POOL
export VS_DB_POOL
export FS_DB_POOL
export ES_DB_POOL
export PPS_DB_POOL
export RS_DB_POOL

export MYSQL_HOST
export MYSQL_PORT
export MYSQL_HOME
export MYSQL_SID
export MYSQL_SYS_USER
export MYSQL_SYS_PASSWD
export MYSQL_VERSION
export MYSQL_SERVER_ID
export PREFIX
export DB_PASSWD

export DEFAULT_TS
export TEMP_TS
export CATALOG_TS
export CATALOG_IX_TS
export CONTENT_TS
export CONTENT_IX_TS
export EVENT_TS
export EVENT_IX_TS
export VENDING_TS
export VENDING_IX_TS
export SUBSCRIBER_TS
export SUBSCRIBER_IX_TS

export VENDING_ACCOUNTS

export ONESTEP
export TWOSTEP
export SUB_BASE
export SUB_PREFIX
export SUB_COUNT
export WIDTH
export DEPTH
export CONTENT_SAMPLES
export CAT_SIZE
export PUBLISH
export MULTIPLIER
